function addFavorite(url,name){
    if(document.all){
        window.external.addFavorite(url,name);
    }else{
        window.sidebar.addPanel(name,url,'');
    }
}